var $title={
	modifier: document.documentElement.getAttribute("titlemodifier"),
	separator: document.documentElement.getAttribute("titlemenuseparator"),
	update: function(){
		if (!gBrowser.mTabbedMode){
			gBrowser.updateTitlebar();
		}
	},
	clear:function(){
		document.documentElement.setAttribute("titlemodifier","");
		document.documentElement.setAttribute("titlemenuseparator","");
		window.setTimeout("gBrowser.updateTitlebar();", 50);
	},
	set:function(title){
		document.documentElement.setAttribute("titlemodifier",title);
		document.documentElement.setAttribute("titlemenuseparator"," - ");
		window.setTimeout("gBrowser.updateTitlebar();", 50);
	},
	customize:function(title){
		var appinfo=Components.classes["@mozilla.org/xre/app-info;1"].getService(Components.interfaces.nsIXULAppInfo);
		title=title.replace("$v",appinfo.version);
		title=title.replace("$b",appinfo.appBuildID);
		title=title.replace("$i",appinfo.ID);
		return title;
	}
}